<?php
class Task_name extends CI_Model{
	public function __construct()
	{
		parent::__construct();
		
		$this->load->database();
		$this->load->library('session');
	}
	//查询所有客户网站分类
	public function get_task_name()
	{	
		
		$query=$this->db->query("select * from tms_task_name");
		return $query->result_array();
	}
	public function get_task_name_title($ut_id=''){
		if($ut_id !='' || $ut_id !=0){
			$query=$this->db->query("select * from tms_task_name where ut_id = $ut_id");
			return $query->result_array();
		}
	}
}
?>